#ifndef SIMPLEOPERATION_H
#define SIMPLEOPERATION_H

#include <QWidget>
#include "ui_simpleoperation.h"
#include "PBO.h"
#include "QSpinBox"
#include "QLineEdit"

class SimpleOperation : public QWidget
{
	Q_OBJECT

public:

	SimpleOperation(QWidget *parent, PBO*, SIMPLE_OPER, int min = -10, int max = 10, float step = 1, int startValue =0);
	~SimpleOperation();
	
public Q_SLOTS:
	void OK_clicked();
	void ParamValueChanged(int);
	void close();

private:
	void run(bool pernam);

private:
	Ui::SimpleOperation ui;
	SIMPLE_OPER operation;
	QSlider* param;
	QLineEdit* edit;
	PBO* pbo;
	float value;
	int factor;
};

#endif // SIMPLEOPERATION_H
